package cn.leaves.wb.viewer;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class IndexViewer {

	@RequestMapping("/")
	public String defaultIndex() {
		return index();
	}

	@RequestMapping("/index")
	public String index() {
		return "index";
	}

	@RequestMapping("/json")
	@ResponseBody
	public String json() {
		return "{}";
	}
}
